package com.headfirst.BehaviorMode.command.remote.version1;

import com.headfirst.BehaviorMode.command.remote.version1.equipment.CeilingFan;

public class CeilingFanOffCommand  implements Command{

    CeilingFan ceilingFan;

    public CeilingFanOffCommand(CeilingFan ceilingFan) {
        this.ceilingFan = ceilingFan;
    }
    
    @Override
    public void execute() {
        ceilingFan.off();
    }

    @Override
    public void undo() {
        ceilingFan.high();
    }
}
